all:server client

server:main.c clientInfoList.o handleThread.o
	gcc -Wall -o server main.c clientInfoList.o handleThread.o -lpthread
clientInfoList.o:clientInfoLIst.c clientInfoList.h
	gcc -Wall -o clientInfoList.o -c clientInfoLIst.c -lpthread
client:mainForC.c handleTreadForC.o
	gcc -Wall -o client mainForC.c handleTreadForC.o -lpthread
handleTreadForC.o:handleTreadForC.c
	gcc -Wall -o handleTreadForC.o -c handleTreadForC.c -lpthread
clean:
	rm server client *.o
